<script type="text/html" template>
  <div class="layui-form" lay-filter="form_user_source">
    <div class="layui-form-item">
      <div class="layui-inline">
        <label class="layui-form-label">手机号</label>
        <div class="layui-form-mid layui-word-aux">
          {{d.params.mobile}}
        </div>
      </div>
    </div>
    {{#
      let parent = d.params.parent || {}
        , channel = d.params.channel || {}
    }}
    <div class="layui-form-item">
      <label class="layui-form-label">邀请人</label>
      <div class="layui-input-inline">
        <input type="text" name="invitor_mobile" max-length="64" autocomplete="off" placeholder="请填写邀请人手机号"
             value="{{parent.mobile || ''}}"  class="layui-input" value="">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">所属渠道</label>
      <div class="layui-input-inline">
        <input type="text" name="channel_code" placeholder="请填写所属渠道的渠道码" autocomplete="off"
           value="{{channel.uuid || ''}}" class="layui-input">
      </div>
    </div>

    <div class="layui-form-item">
      <div class="layui-footer">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
          <input type="button" lay-submit lay-filter="submit_user_source" value="保存" class="layui-btn">
        </div>
      </div>
    </div>
  </div>
</script>
